<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProjectGroupSearch.aspx.cs" Inherits="ProjectGroupSearch" Title="Project Monitoring System"
    Culture="auto:en-US" UICulture="Auto" meta:resourcekey="PageResource1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:ObjectDataSource ID="ODSClient" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetClientData" TypeName="IPTableAdapters.ClientTableAdapter">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                    Type="Boolean" />
                <asp:SessionParameter DefaultValue="x" Name="OwnerGroupID" SessionField="OwnerGroupId"
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtSearch_CreateDate"
            Enabled="True" Format="dd/MM/yyyy">
        </cc1:CalendarExtender>
        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtSearch_CreateDateEnding"
            Enabled="True" Format="dd/MM/yyyy">
        </cc1:CalendarExtender>
        <asp:ObjectDataSource ID="ODSType" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetCodesByType" TypeName="IPTableAdapters.CodeTableAdapter">
            <SelectParameters>
                <asp:Parameter DefaultValue="PT" Name="Type" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:Panel ID="Panel2" runat="server" DefaultButton="btnSearch" meta:resourcekey="Panel2Resource1">
            <fieldset>
                <legend>
                    <asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"></asp:Label></legend>
                <table>
                    <tr>
                        <td width="100" align="left">
                            <asp:Label ID="lblSearch_PGI" runat="server" Text="Project Group ID" meta:resourcekey="lblSearch_PGIResource2"></asp:Label>
                        </td>
                        <td width="200" align="left">
                            <asp:TextBox ID="txtSearch_PGI" runat="server" MaxLength="30" meta:resourcekey="txtSearch_PGIResource1"></asp:TextBox>
                        </td>
                        <td width="80" align="left">
                            <asp:Label ID="lblTitleSubject" runat="server" meta:resourcekey="lblTitleSubject"
                                Text="Title/Subject"></asp:Label>
                        </td>
                        <td width="200" align="left">
                            <asp:TextBox ID="txtTitleSubject" runat="server" MaxLength="60" meta:resourcekey="txtSearch_DescriptionResource1"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblSearch_OfficerName" runat="server" Text="Officer Name" meta:resourcekey="lblSearch_OfficerNameResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearch_OfficerName" runat="server" MaxLength="30" meta:resourcekey="txtSearch_OfficerNameResource1"></asp:TextBox>
                        </td>
                        <td align="left">
                            <asp:Label ID="lblType" runat="server" Text="Type" meta:resourcekey="lblTypeResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlType" runat="server" DataSourceID="ODSType" DataTextField="Code"
                                DataValueField="Code" meta:resourcekey="ddlTypeResource1" OnPreRender="ddlType_PreRender"
                                CausesValidation="True">
                                <asp:ListItem Text=""></asp:ListItem>
                                <asp:ListItem meta:resourceKey="ListItemResource1" Text="Design"></asp:ListItem>
                                <asp:ListItem meta:resourceKey="ListItemResource2" Text="Patent"></asp:ListItem>
                                <asp:ListItem meta:resourceKey="ListItemResource3" Text="Trademark"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblApplicant" runat="server" Text="Applicant" meta:resourcekey="lblApplicantResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtApplicant" runat="server" MaxLength="30" meta:resourcekey="txtApplicantResource1"></asp:TextBox>
                        </td>
                        <td align="left">
                            <asp:Label ID="lblClient" runat="server" Text="Client" meta:resourcekey="lblClientResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlClient" runat="server" DataSourceID="ODSClient" DataTextField="Client"
                                DataValueField="Client" OnPreRender="ddlClient_PreRender" meta:resourcekey="ddlClientResource1">
                                <asp:ListItem Text=""></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ListItemResource1" Text="Design"></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ListItemResource2" Text="Patent"></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ListItemResource3" Text="Trademark"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="left" style="width: 200px;">
                            <asp:Label ID="lblDeleteStatus" runat="server" Text="Delete Status" meta:resourcekey="lblDeleteStatusResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlDeleteStatus" runat="server">
                                <asp:ListItem Text="" Value="0"></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ListItemNormalResource" Text="Normal" Value="False"></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ListItemDeletedResource" Text="Deleted" Value="True"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblInventor" runat="server" Text="Inventor" meta:resourcekey="lblInventorResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtInventor" runat="server" MaxLength="30" meta:resourcekey="txtInventorResource1"></asp:TextBox>
                        </td>
                        <td align="left">
                            <asp:Label ID="lblSearch_CreateDate" runat="server" Text="Create Date" meta:resourcekey="lblSearch_CreateDateResource1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearch_CreateDate" runat="server" Width="107px" meta:resourcekey="txtSearch_CreateDateResource1"></asp:TextBox>
                        </td>
                        <td width="80" align="left">
                            <asp:Label ID="lblEnding" runat="server" Text="Ending" meta:resourcekey="lblEndingResource1"></asp:Label>
                        </td>
                        <td width="200" align="left">
                            <asp:TextBox ID="txtSearch_CreateDateEnding" runat="server" Width="90px" meta:resourcekey="txtSearch_CreateDateEndingResource1"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center">
                            <asp:Button ID="btnSearch" runat="server" CausesValidation="False" CssClass="submit" Text="Search" OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" />
                            <asp:Button ID="btnNewProjectGroup" runat="server" CausesValidation="False" CssClass="submit" Text="New Project Group" OnClick="btnNewProjectGroup_Click" meta:resourcekey="btnNewProjectGroupResource1" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <asp:ObjectDataSource ID="ODSSearch" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetProjectGroupFromSearch" TypeName="IPTableAdapters.ProjectGroupTableAdapter"
                DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
                <SelectParameters>
                    <asp:Parameter Name="ProjectGroupID" Type="String" DefaultValue="x" />
                    <asp:Parameter Name="Description" Type="String" DefaultValue="" />
                    <asp:Parameter Name="OfficerName" Type="String" DefaultValue="x" />
                    <asp:Parameter DefaultValue="" Name="CreateDate" Type="DateTime" />
                    <asp:Parameter DefaultValue="" Name="CreateDateEnding" Type="DateTime" />
                    <asp:ControlParameter ControlID="txtApplicant" DefaultValue="" Name="Applicant" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtTitleSubject" DefaultValue="" Name="TitleSubject"
                        PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="ddlClient" Name="Client" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                        Type="Boolean" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                </SelectParameters>
                <DeleteParameters>
                    <asp:Parameter Name="Original_ProjectGroupID" Type="String" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="OfficerName" Type="String" />
                    <asp:Parameter Name="OfficerRole" Type="String" />
                    <asp:Parameter Name="Title" Type="String" />
                    <asp:Parameter Name="OfficerEmail" Type="String" />
                    <asp:Parameter Name="UpdateBy" Type="String" />
                    <asp:Parameter Name="FirstFilingDate" Type="DateTime" />
                    <asp:Parameter Name="PriorityDate" Type="DateTime" />
                    <asp:Parameter Name="ProjectClass" Type="String" />
                    <asp:Parameter Name="Applicant" Type="String" />
                    <asp:Parameter Name="Inventor" Type="String" />
                    <asp:Parameter Name="Type" Type="String" />
                    <asp:Parameter Name="Client" Type="String" />
                    <asp:Parameter Name="TitleSubject" Type="String" />
                    <asp:Parameter Name="Original_ProjectGroupID" Type="String" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="ProjectGroupID" Type="String" />
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="OfficerName" Type="String" />
                    <asp:Parameter Name="OfficerRole" Type="String" />
                    <asp:Parameter Name="Title" Type="String" />
                    <asp:Parameter Name="OfficerEmail" Type="String" />
                    <asp:Parameter Name="CreateBy" Type="String" />
                    <asp:Parameter Name="UpdateBy" Type="String" />
                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                    <asp:Parameter Name="FirstFilingDate" Type="DateTime" />
                    <asp:Parameter Name="PriorityDate" Type="DateTime" />
                    <asp:Parameter Name="ProjectClass" Type="String" />
                    <asp:Parameter Name="Applicant" Type="String" />
                    <asp:Parameter Name="Inventor" Type="String" />
                    <asp:Parameter Name="Type" Type="String" />
                    <asp:Parameter Name="Client" Type="String" />
                    <asp:Parameter Name="TitleSubject" Type="String" />
                </InsertParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="ODSSearch2" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetProjectGroupFromSearchAndIsDelete" TypeName="IPTableAdapters.ProjectGroupTableAdapter">
                <SelectParameters>
                    <asp:Parameter Name="ProjectGroupID" Type="String" DefaultValue="x" />
                    <asp:Parameter Name="Description" Type="String" DefaultValue="" />
                    <asp:Parameter Name="OfficerName" Type="String" DefaultValue="x" />
                    <asp:Parameter DefaultValue="" Name="CreateDate" Type="DateTime" />
                    <asp:Parameter DefaultValue="" Name="CreateDateEnding" Type="DateTime" />
                    <asp:ControlParameter ControlID="txtApplicant" DefaultValue="" Name="Applicant" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtTitleSubject" DefaultValue="" Name="TitleSubject"
                        PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="ddlClient" Name="Client" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                        Type="Boolean" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                    <asp:Parameter DefaultValue="False" Name="IsDelete" Type="Boolean" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <fieldset>
                <legend>
                    <asp:Label ID="lblActive" runat="server" Text="Active Project Group" meta:resourcekey="lblActiveResource1"></asp:Label>
                </legend>
                <asp:GridView CssClass="Grid" ID="gvProjectGroup" runat="server" AutoGenerateColumns="False"
                    BackColor="#DEBA84" BorderColor="#660000" GridLines="Both" BorderStyle="Solid"
                    BorderWidth="1px" CellPadding="0" CellSpacing="0" Width="100%"
                    DataSourceID="ODSSearch2"  DataKeyNames="ProjectGroupID,IsDelete"
                    AllowPaging="True" PageSize="15" meta:resourcekey="gvProjectGroupResource1"
                    OnSelectedIndexChanged="gvProjectGrp_SelectedIndexChanged"
                    OnRowCommand="gvProjectGroup_RowCommand" 
                    OnRowDataBound="gvProjectGroup_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="ProjectGroupID" HeaderText="ProjectGroupID" ReadOnly="True" SortExpression="ProjectGroupID" Visible="False" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="ProjectGroupID" HeaderText="Project Group ID"
                            SortExpression="ProjectGroupID" Text="Button" meta:resourcekey="ButtonFieldResource1">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:ButtonField>
                        <asp:BoundField DataField="Description" HeaderText="Title/Subject" SortExpression="Description"
                            meta:resourcekey="BoundFieldResource2">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OfficerName" HeaderText="OfficerName" SortExpression="OfficerName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Applicant" HeaderText="Applicant" SortExpression="Applicant"
                            meta:resourcekey="BoundFieldResource5">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Inventor" HeaderText="Inventor" SortExpression="Inventor"
                            meta:resourcekey="BoundFieldResource6">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" meta:resourcekey="BoundFieldResource7" />
                        <asp:BoundField DataField="Client" HeaderText="Client" SortExpression="Client" meta:resourcekey="BoundFieldResource8">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateIP" HeaderText="IP Address" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceUpdateIP" />
                        <asp:BoundField DataField="UpdateBy" HeaderText="Updated By" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceUpdateBy" />
                        <asp:BoundField DataField="UpdateDate" HeaderText="Last Update Date" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceUpdateDate" />
                        <asp:TemplateField HeaderText="Edit" ItemStyle-Width="60" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <a href="ProjectGroups.aspx?ProjectGroupID=<%# Eval("ProjectGroupID")%>"><img src="Images/icon-edit.gif" border="0" /></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Restore" Visible="false" meta:resourcekey="BoundFieldResourceRestore">
                            <ItemTemplate>
                                <asp:Label ID="lblIsDelete" runat="server" Text='<%# Eval("IsDelete") %>' Visible="false"></asp:Label>
                                <asp:LinkButton ID="lbtnRestore" CommandName="Restore" runat="server" Text="Restore"
                                    meta:resourcekey="lbtnRestoreResource"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle" />
                    <AlternatingRowStyle CssClass="GridAltRowStyle" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                    <FooterStyle CssClass="GridFooterStyle" />
                </asp:GridView>
            </fieldset>
            <asp:ObjectDataSource ID="ODSProjectGroupDelete" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetProjectGroupFromSearchAndIsDelete" TypeName="IPTableAdapters.ProjectGroupTableAdapter">
                <SelectParameters>
                    <asp:Parameter Name="ProjectGroupID" Type="String" DefaultValue="x" />
                    <asp:Parameter Name="Description" Type="String" DefaultValue="" />
                    <asp:Parameter Name="OfficerName" Type="String" DefaultValue="x" />
                    <asp:Parameter DefaultValue="" Name="CreateDate" Type="DateTime" />
                    <asp:Parameter DefaultValue="" Name="CreateDateEnding" Type="DateTime" />
                    <asp:ControlParameter ControlID="txtApplicant" DefaultValue="" Name="Applicant" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtTitleSubject" DefaultValue="" Name="TitleSubject"
                        PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="ddlClient" Name="Client" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                        Type="Boolean" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                    <asp:Parameter DefaultValue="True" Name="IsDelete" Type="Boolean" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <fieldset>
                <legend>
                    <asp:Label ID="lblDeleted" runat="server" Text="Deleted Project Group" meta:resourcekey="lblDeletedResource1"></asp:Label>
                </legend>
                <asp:GridView CssClass="Grid" ID="gvProjectGroupDelete" runat="server" AutoGenerateColumns="False"
                    BackColor="#DEBA84" BorderColor="#660000" GridLines="Both" BorderStyle="Solid"
                    BorderWidth="1px" CellPadding="0" CellSpacing="0" Width="100%"
                    DataSourceID="ODSProjectGroupDelete" DataKeyNames="ProjectGroupID,IsDelete"
                    AllowPaging="True" PageSize="15"  meta:resourcekey="gvProjectGroupResource1"
                    OnRowCommand="gvProjectGroupDelete_RowCommand"
                    OnRowDataBound="gvProjectGroupDelete_RowDataBound">
                    <FooterStyle CssClass="GridFooterStyle" />
                    <Columns>
                        <asp:BoundField DataField="ProjectGroupID" HeaderText="ProjectGroupID" ReadOnly="True"
                            Visible="False" SortExpression="ProjectGroupID" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="ProjectGroupID" HeaderText="Project Group ID"
                            SortExpression="ProjectGroupID" Text="Button" meta:resourcekey="ButtonFieldResource1">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:ButtonField>
                        <asp:BoundField DataField="Description" HeaderText="Title/Subject" SortExpression="Description"
                            meta:resourcekey="BoundFieldResource2">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OfficerName" HeaderText="OfficerName" SortExpression="OfficerName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Applicant" HeaderText="Applicant" SortExpression="Applicant"
                            meta:resourcekey="BoundFieldResource5">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Inventor" HeaderText="Inventor" SortExpression="Inventor"
                            meta:resourcekey="BoundFieldResource6">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" meta:resourcekey="BoundFieldResource7" />
                        <asp:BoundField DataField="Client" HeaderText="Client" SortExpression="Client" meta:resourcekey="BoundFieldResource8">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeleteIP" HeaderText="IP Address" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteIP" />
                        <asp:BoundField DataField="DeleteBy" HeaderText="Deleted By" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteBy" />
                        <asp:BoundField DataField="DeleteDate" HeaderText="Delete Date" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteDate" />
                        <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" HeaderText="Restore" meta:resourcekey="lbtnRestoreResource">
                            <ItemTemplate>
                                <asp:Label ID="lblIsDelete" runat="server" Text='<%# Eval("IsDelete") %>' Visible="false"></asp:Label>
                                <asp:ImageButton ID="lbtnRestore" CommandName="Restore" runat="server" ImageUrl="Images/icon-save.gif"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" HeaderText="Trash" meta:resourcekey="lbtnFroceDeleteResource2">
                            <ItemTemplate>
                                <asp:ImageButton ID="lbtnFroceDelete" CommandName="ForceDelete" runat="server" ImageUrl="Images/icon-delete.jpg"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="GridRowStyle" />
                    <AlternatingRowStyle CssClass="GridAltRowStyle" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                </asp:GridView>
            </fieldset>
        </asp:Panel>
    </div>
</asp:Content>
